﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using KPIS.GERP.GHRMS.DAL;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IBLL;

namespace KPIS.GERP.GHRMS.BLL
{
    public class PositionCommandDtlsBLL : IPositionCommandDtlsBLL
    {
        PositionCommandDtlsDAL cmdDtls = new PositionCommandDtlsDAL();

        public DataSet LoadPositionCommandDtls(Nullable<int> Sequence, Nullable<int> CommandSequence)
        {
            return cmdDtls.LoadPositionCommandDtls(Sequence, CommandSequence);
        }
        //public PositionCommandDtlsInfo GetPositionCommandDtlsInfo(Nullable<int> Seq)
        //{
        //    return cmdDtls.GetPositionCommandDtlsInfo(Seq);
        //}
        //public IList<PositionCommandDtlsInfo> LoadGridPositionCommandDtls(Nullable<int> CmdSeq)
        //{
        //    return cmdDtls.LoadGridPositionCommandDtls(CmdSeq);
        //}
        public void Insert(PositionCommandDtlsInfo Info)
        {
            try
            {
                cmdDtls.Insert(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }
        public void Update(PositionCommandDtlsInfo Info)
        {
            try
            {
                cmdDtls.Update(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }
        public void Delete(PositionCommandDtlsInfo Info)
        {
            try
            {
                cmdDtls.Delete(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }        
    }
}
